package cn.toutatis.sandbox.root.security.service.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import cn.toutatis.common.controllerDepand.EntityBasicAttribute;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.text.SimpleDateFormat;

/**
 * <p>
 * 允许访问接口关联
 * </p>
 *
 * @author Toutatis_Gc
 * @since 2020-08-13
 */
public class SystemUserPermission extends EntityBasicAttribute<SystemUserPermission> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID/自增
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 允许访问路径
     */
    @TableField("antUrl")
    private String antUrl;


    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public void setAntUrl(String antUrl) {
        this.antUrl = antUrl;
    }

    public String getAntUrl() {
        return antUrl;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "\r\nSystemUserPermission{" +
            "id=" + id +
            ", antUrl=" + antUrl +
        "}";
    }
}
